home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Shareware World / Utilities / Text Processing / Jedit3.0 / Manual / Chap6 Format < prev    next >
Encoding:
Text File  |  1999-08-03  |  10.3 KB  |  183 lines  |  [TEXT/JED3]

  1. Chapter 6 - Format
  2.  
  3.  
  4. 6.1 Format Menu
  5.  
  6. You can change the fonts, sizes, styles and colors of the highlighted area by selecting the each menu item of the "Format" menu. You can also know the current value of font, size, style and color of the highlighted area by the check mark of each submenu. 
  7.  
  8.             
  9.  
  10. Font change between the different scripts
  11.  
  12. If you force to change the font of Japanese sentences into some Roman font (e.g. Osaka font into Chicago) , the Japanese characters will be displayed as meaningless ones, as shown below.
  13.                 
  14.  
  15. Jedit users do not have to worry about such a thing. In the case of a document of Jedit, even if you select the Chicago font of the menu "Format" after you have selected some text of Japanese characters, the font of Japanese characters will remain the same.  For instance, if you change the font of the following sentence of multi-scripts into the Chicago font in your document of Jedit3.0, the font change will affect only the Roman characters.
  16.  
  17.         
  18.  
  19.  
  20. Unconditional Font Change
  21.  
  22. Regardless of what scripts you are using in the document, you can force to change the font manually by selecting the "Font" menu with the option key down.
  23.  
  24.  
  25. Font Synchronization
  26.  
  27. If the current font is Roman font (e.g. Chicago font), input of Japanese characters will result in meaningless characters.  
  28.  
  29. In order to prevent this, Jedit3.0 switches the current font automatically to the font which matches the key board script and appears in preceding sentences of the document.  We call this "Font Synchronization with Keyboard Script".
  30.  
  31. If the"Font Sync with KB Script" of the"General"  of the "Preferences..." is not selected, Jedit3 will switch the current font over to the default font  which you choose in the "New Document"  of the "Preferences..."
  32.  
  33.  
  34. 6.2 Other Colors
  35.  
  36. If you want to change any of background color, line number color, tab/cr marks color, or TSM conversion color of your document, select "Other Colors..." of the menu "Format",  then a dialog box will appear as shown below.
  37.  
  38.             
  39.  
  40. If you click the colored box that you want to change, the color palette will appear as shown below.  
  41.  
  42.         
  43.  
  44. If you change any of these colors, the result will apply to the whole document.
  45.  
  46. Line number color is not only used for the line numbers but also for the foreground color in the document window. TAB/CR color is used for the TAB/CR marks when the "Show TAB/CR Marks" is checked in the "Format" menu. TSM Conversion Color is the  color of the underline that will appear when you type in Japanese characters with the use of TSM inline conversion system such as "Kotoeri". 
  47.  
  48.  
  49. 6.3 Document Width
  50.  
  51. If you select "Document Width..." from the Format menu, the following dialog will appear.
  52.  
  53.                 
  54.  
  55. If you select the "follows Window width" radio button , the lines in the document will be word-wrapped to fit the width of the document window.  
  56.  
  57. If you select the "fix width" radio button, the document width will be fixed to the assigned width regardless of its window width.  Though the width is stored internally in point units, you can also assign it in column or millimeter units. 
  58.  
  59. When you assign the width in column units, the width will be calculated basing on the character width of the default font.  To examine or change the default font of the document, select the "Ruler font" of the menu "Format".
  60.  
  61. You can choose between three ways of word-wrapping of text in your document. 
  62. if you don't need word-wrapping, select "No Wordwrap".  Then the line of text will turn to the next line even in the middle of a word.
  63. If you want to make the last word of a line to go to the top of the next line, select "Normal Wordwrap",
  64. Select "Hanging Wordwrap" if you want Japanese punctuation to remain on the same line even if they occur at the very end of a line. 
  65. For non-Japanese documents, do not select "Hanging Wordwrap".
  66.  
  67.  
  68. 6.4 Other Format Functions
  69.  
  70. Alignment
  71. The "Alignment" of the menu "Format" offers the three options: Align Left, Center, Align Right.  The alignment you select will be applied to the whole document.  (You can not set different alignments for each line or paragraph.)
  72.  
  73.         
  74.  
  75. Tab Width
  76. Though the tab width is stored internally in point units, you can also assign the tab width in column or millimeter units.   When you assign the tab width in units of column, the widthh will be calculated basing on the character width of the default font. 
  77.             
  78. Line Spacing
  79. To set the space width between lines, simply type the desired point size.
  80.  
  81.             
  82.  
  83. Auto Indent
  84. If you select this option, each new line will have the same indentation as the previous paragraph.
  85.  
  86. TAB/CR Marks
  87. If you select the "Show TAB/CR Marks" of the menu "Format", each TAB as amark, each CR as a mark, will appear in the document. You can also select the color of these marks in the menu "Other Colors...".
  88.  
  89. Line Numbers
  90. To display line or paragraph numbers at the left side of the document, select the "Line Numbers" of the menu "Format".  You can do the same thing by pushing the pop-up menu button at the bottom left of the window.  You can also hide or show line numbers by double clicking on the line number area. (For details, see "Chapter 4, 4.1 The Parts of a Document Window").
  91.  
  92. Ruler
  93. To display the ruler, select the "Ruler" of the menu "Format".  You can choose the unit of the ruler scale between "Column", "Point", "Inch" and "Centimeter". You can do the same thing by pushing the pop-up menu button at the right side of the ruler.   You can also hide or show the ruler by double clicking on the ruler area.   (For details, see "Chapter 4, 4.1 The Parts of a Document Window")
  94.  
  95. Ruler Font 
  96. Jedit will calculate an unit width of the column scale basing on the character width of the default font. You can know or change this default font by selecting the "Ruler Font..." of the menu "Format".
  97.             
  98.             
  99. If the default font is a proportional font, the width of character 'O' will be assumed to be  its default width.  In Japanese fonts, the half width of Kanji characters will be assumed to be its default width. In the proportional fonts, the actual location of each character may not match exactly with the ruler scale. 
  100.  
  101.  
  102.  
  103.  
  104.  
  105. 6.5 HTML Assistant Tools
  106.  
  107. The "HTML Coloring" and "URL Path Name Dropping" functions may be useful when you are creating the HTML documents.   You can also use the HTML validation checker "JChecker" and the HTML template tool "JHTML" in the Jedit document.
  108.  
  109. If you select the "HTML Coloring" from the menu "Format", you can make use of  both the "HTML Coloring" and "URL Path Name Dropping" functions.
  110.  
  111. To set the coloring options, select the "HTML Setting..." of the menu"Format". If you check the box "HTML Coloring" in this dialog, the coloring mode will automatically be activated when the HTML files are opened. (For more details, see "Chapter 3, 3.10 HTML".)
  112.  
  113.         
  114.  
  115.  
  116. HTML Coloring
  117.  
  118. The HTML coloring will help you to distinguish between the data, the anchor tags, the image tags and the comments, as shown below, 
  119.  
  120. <!DOCTYPE html public "-//w3c//dtd html 3.2//en">
  121. <HTML>
  122.     <HEAD>
  123.         <META http-equiv="Content-Type" content="text/html;CHARSET=iso-2022-jp">
  124.         <TITLE>Matsumoto & Co., Ltd.</TITLE>
  125.     </HEAD>
  126.     <BODY bgcolor="#FFFFFF">
  127.         <CENTER>
  128.         <P>
  129.         <IMG src="MatsumotoLogo.gif" width="326" height="64" align="BOTTOM"......             </P>
  130.     ............................
  131.     ............................
  132.  
  133. The HTML coloring will be executed automatically as you type.  However, there may be some cases when the coloring is not executed correctly.   If this happens, you can correct this error by simply turning off the menu "HTML Coloring " and  turning it on again. 
  134.  
  135.  
  136. Note:  The all contents of SCRIPT, XMP, LISTING, PLAINTEXT, STYLE and SERVER tags will be colored as data.   Even if these tags contain the comment tags within them, those comment tags will be colored with the same color as that of data (usually black).
  137.  
  138.  
  139. URL Path Name Dropping
  140.  
  141. This function may be convenient when you want to put URL path names into the anchor tags and image tags in the HTML document of Jedit.  Select the file icon where you want to get a URL path from, drag it from the Finder desktop and drop it onto the HTML document of Jedit with the control key down. Make sure you should press the control key after you start to drag the file icon, not before. 
  142. If you press the control key before beginning the drag, the contextual menu will pop up instead.  
  143.  
  144. The path name you get will appear in your document just as in the following example:
  145.  
  146.     "file:///Macintosh%20HD/Apple%20Extras/example.html"
  147.  
  148. The Path name will appear between the quotations, and will be in the proper URL format. (Spaces, some marks and kanji characters will be represented as the hexadecimal expressions with "%". )
  149.  
  150. If you are editing the HTML file that has already been saved, the relative URL path will be inserted instead of the absolute path.  For example, when the HTML file you are editing and the file where you link to (in this case, example.html) are both in the same directory "Apple Extras", the path name got from a dropped file will appear as follows:
  151.  
  152.     "example.html"
  153.  
  154.  
  155.  
  156.  HTML Validation Checker  "JChecker" 
  157. By calling the JChecker from the "Word Services" of the menu "Tools", you can check the correctness of the HTML in your document.  JChecker will check the spelling of the tags and attributes, the existence of end tags, their hierarchical structures, and general appearances.  It will also alert you if the document contains tags that are not supported by certain browser types or versions.  In addition, it can arrange your HTML text so as to allow you easily to view the hierarchical structure of the contents of a HTML document..
  158.  
  159. JChecker is shareware and can be downloaded from our web site:
  160. http://www.matsumoto.co.jp/
  161. The Japanese version and English version are both available.
  162.  
  163.         
  164.  
  165.  
  166. HTML Templates "JHTML"
  167. JHTML is an AppleScript pulg-in for Jedit3.0.  You can insert various HTML tags into your document with a single action or through a special wizard.  There are other useful functions including the function to turn tabbed lines of text into HTML tables, etc.  
  168.  
  169. JHTML is freeware and can be downloaded from our web site:
  170. http://www.matsumoto.co.jp/
  171. Unfortunately, at this time of July 1999, the English version of JHTML is not available.  We will release the English version as soon as possible.
  172.  
  173. When JHTML is open, a tool bar will appear as shown below.
  174. (JHTML is an AppleScript application using "FaceSpan3.0"(Digital Technology International Ltd.) 
  175.  
  176. 
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.